package com.zhanggm.springcloud.mongo.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

@Data
@Document(collection = "student")
@AllArgsConstructor
public class Student {

    @Id
    private String id;

    private String name;

    private int sex;

    private Date createDate;

}
